=begin
  * MUIDE Sample plugin (ctrl-E will run this)
=end
 class TimedWHO
	 attr_accessor :int,:do,:socket
	 def initialize int=300
		 @int = int
		 @do = true
		 @socket = $client.client.socket
	 end
	 def run
		 Thread::new do
			 loop do
		     if @do
			     @socket.puts "WHO"
			     sleep(@int)
		     end
	     end
	   end
	 end
	 def stop
		 @do=false
	 end
 end
 @timer = TimedWHO::new 60
 @timer.run
 p @timer